//
//  TitleView.h
//  Dispatch
//
//  Created by hyeyeon on 14. 1. 14..
//  Copyright (c) 2014년 hyeyeon. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "ViewController.h"

@class AppDelegate;
@interface TitleView : UIView <UISearchBarDelegate>
{
    
    AppDelegate *appDelegate;
    CGRect myRect;
    
    UIImageView *yellowImage;
    UIButton *starRankingButton;
    UIButton *searchButton;
    UIView *rangkingView;
    UILabel *titleLabel;
    
    //메뉴버튼들
    UIButton *issueButton;
    UIButton *battleButton;
    UIButton *captureButton;
    UIButton *myButton;
    
    //랭킹뷰
    UIButton *upperButton;
    UIButton *lowerButton;
    UIImageView *upperIcon;
    UIImageView *lowerIcon;
    UILabel *upperLabel;
    UILabel *lowerLabel;
    NSInteger currentRankingIndex;
    NSTimer *rollingTimer;
    
}
-(void)startRankingRolling;
-(void)selectMenuButton:(NSInteger)btnTag;
@property (nonatomic, assign) id delegate;
@property (nonatomic, retain) NSString *currentKeyword;
@end
